<template>
    <div>
        <h2>子组件：{{ count }} {{ name }}</h2>
        <button @click="count++">+1</button>
    </div>
</template>

<script setup>
const count = defineModel('count');
const name = defineModel('name');
</script>

<style scoped></style>